package com.ocom.accesservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.access.EntityMjZoneDate;
import com.ocom.common.request.web.GetZoneDateListRequest;

import java.util.List;

public interface ZoneDateService extends IService<EntityMjZoneDate> {




    /**
     * 初始化单位门禁参数
     * */
    public void InitCompanyPara(EntityMjZoneDate entityMjZoneDate,Long companyId);

    List<EntityMjZoneDate> selectZonedDateTimeList(Long comId);

    List<EntityMjZoneDate> selectZonedDateTimeListPage(GetZoneDateListRequest getZoneDateListRequest,Long comId);

    Integer setDateZone(EntityMjZoneDate entityMjZoneDate,Long companyId);

    Integer removeDateZone(EntityMjZoneDate entityMjZoneDate, Long comId);

    //从门禁时区设置表mj_zone_date查找com_id= companyID、date_day= dateDay、date= accessDay的记录,
    public EntityMjZoneDate getZoneDateInfo(Long companyId,Integer dateDay, String weekDay);

    public Long getZoneNo(Long companyId);
}
